/**
 * 
 */
package com.qc.ds.services.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qc.ds.dao.CategoryMapper;
import com.qc.ds.pojo.Category;
import com.qc.ds.services.CategoryService;

@Service
public class CategoryServiceImpl implements CategoryService {

	@Autowired
	CategoryMapper categoryMapper;
	
	@Override
	public List<Map<String, Object>> findCategory() {
		return categoryMapper.findCategory();
	}
	@Override
	public Boolean addCategory(Category vategory) {
		int line = categoryMapper.addCategory(vategory);
		if(line>0){
			return true;
		}else{
			return false;
		}
	}
	

}
